package cn.ywang;

import cn.ywang.register.RegisterCenter;
import cn.ywang.server.Server;
import cn.ywang.service.HelloImplCopy;
import cn.ywang.service.IHello;

/**
 * @Auther: BeatificWang
 * @Date: 2018/12/16 22:37
 */
public class ServerAppCopy {
	public static void main(String[] args) {
		try {
			RegisterCenter registerCenter = new RegisterCenter();
			IHello helloCopy = new HelloImplCopy();
			Server serverCopy = new Server(registerCenter, "127.0.0.1:8889");
			serverCopy.bind(helloCopy);
			serverCopy.publisher();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
